package com.wteam.PoJo.DTO;

import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.metadata.OrderItem;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@ApiModel("订单分页")
@AllArgsConstructor
@NoArgsConstructor
public class orderpageDTO {
    @ApiModelProperty(value = "页码", required = true)
    private Integer page = 1;

    @ApiModelProperty(value = "一页条数", required = true)
    private Integer pageSize = 10;

    @ApiModelProperty(value = "1、未付款 2、已付款,未发货 3、已发货,未确认4、确认收货，交易成功 5、交易取消，订单关闭 " +
            "6、交易结束，已评价 7.查全部", required = true)
    private Integer status;

    public <T> Page<T> toMpPage() {

        Page<T> page1 = Page.of(page, pageSize);


        return page1;

    }
}
